﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Lawyer.Web.FileInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					string FileID= strid;
					ShowInfo(FileID);
				}
			}
		}
		
	private void ShowInfo(string FileID)
	{
		Lawyer.BLL.FileInfo bll=new Lawyer.BLL.FileInfo();
		Lawyer.Model.FileInfo model=bll.GetModel(FileID);
		this.lblFileID.Text=model.FileID;
		this.lblFileName.Text=model.FileName;
		this.lblFileNote.Text=model.FileNote;
		this.lblFileURL.Text=model.FileURL;
		this.lblLawyerID.Text=model.LawyerID;
		this.lblArchiveID.Text=model.ArchiveID;
		this.lblIsArchive.Text=model.IsArchive.ToString();
		this.lblCreatedBy.Text=model.CreatedBy;
		this.lblCreatedDate.Text=model.CreatedDate.ToString();

	}


    }
}
